import request from '@/utils/request'
//退回
export function tuihui(query) {
    return request({
      url: '/archive/dazl/tuihui',
      method: 'POST',
      params: query
    })
  }

//添加移交单
export function addHandOverDa(query) {
    return request({
      url: '/archive/yijiao/addHandOverDa',
      method: 'POST',
      params: query
    })
  }

//装盒验证
export function isPermit(data) {
    return request({
      url: '/archive/box/isPermit',
      method: 'POST',
      data: data
    })
  }
// 获取盒子规格
export function getMaxHehaoByCondition(data) {
    return request({
      url: '/archive/box/getMaxHehaoByCondition',
      method: 'POST',
      data: data
    })
  }
//装盒
export function saveBox(data) {
    return request({
      url: '/archive/box/saveBox',
      method: 'POST',
      data: data
    })
  }

  //验证是否装过盒
export function getFlag(query) {
    return request({
      url: '/archive/box/getFlag',
      method: 'GET',
      params: query
    })
  }

  //取消装盒
  export function cancelBox(data) {
    return request({
      url: '/archive/box/cancelBox',
      method: 'POST',
      data: data
    })
  }


  //根据多个父id获取子层数据
  export function getmultipleInfo(data) {
    return request({
      url: '/archive/detail/getmultipleinfo',
      method: 'POST',
      data: data
    })
  }

// 项目下退回卷
export function tuihuiAnJuan(query) {
  return request({
    url: '/archive/dazl/tuihuiAnJuan',
    method: 'POST',
    params: query
  })
}


//打包

export function pack(data) {
  return request({
    url: '/archive/pack/pack',
    method: 'POST',
    data: data
  })
}

//查询档号
export function daList(query) {
  return request({
    url: '/archive/association/daList',
    method: 'GET',
    params: query
  })
}
//新增互见号
export function associationPOST(data) {
  return request({
    url: '/archive/association',
    method: 'POST',
    data: data
  })
}
//已关联数据列表
export function associationList(query) {
  return request({
    url: '/archive/association/list',
    method: 'GET',
    params: query
  })
}

//删除已关联的数据
export function associationDelete(ID) {
  return request({
    url: '/archive/association/'+ID,
    method: 'DELETE',
  })
}
